package net.qhzw.vip.qiyu.util;

import org.springframework.util.StringUtils;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class MyStringUtils {


    public static List<Long> getListIds(String param) {
        List<Long> longs = new ArrayList<>();
        if (StringUtils.isEmpty(param))
            return longs;
        List<String> strings = Arrays.asList(param.split(","));
        List<Long> ids = new ArrayList<>(strings.size());
        strings.forEach(data -> {
            ids.add(Long.valueOf(data));
        });
        return ids;
    }


}
